import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询报警记录全部
export const alarmRecordList = data => {
    return $get('/alarm/alarmRecord/list', data)
}

// 查询报警记录列表
export const alarmRecordPage = data => {
    return $get('/alarm/alarmRecord/page', data)
}

// 新增报警记录
export const alarmRecordAdd = data => {
    return $post('/alarm/alarmRecord/add', data)
}

// 查询报警记录详情
export const alarmRecordDetail = id => {
    return $get('/alarm/alarmRecord/detail/'+ id)
}

// 更新报警记录
export const alarmRecordUpdate = data => {
    return $post('/alarm/alarmRecord/update', data)
}

// 删除报警记录
export const alarmRecordDelete = id => {
    return $post('/alarm/alarmRecord/delete/'+ id)
}

// 导出报警记录
export const alarmRecordExport = (data,fileName) => {
    return $download('/alarm/alarmRecord/export',data, fileName)
}

// 查询报警记录处置全部
export const alarmRecordHandleList = data => {
    return $get('/alarm/alarmRecordHandle/list', data)
}
// 查询报警记录处置详情
export const alarmRecordHandleDetail = id => {
  return $get('/alarm/alarmRecordHandle/detail/'+ id)
}

// 新增报警记录处置
export const alarmRecordHandleAdd = data => {
  return $post('/alarm/alarmRecordHandle/add', data)
}


// 报警督办
export const orderPush = data => {
  return $post('/collect/sgSupervise/orderPush', data)
}
